#pragma once
#include "c:\qt\4.7.1\src\gui\dialogs\qdialog.h" 
#include <QLineEdit>
#include <QLabel>
#include <QValidator>
#include <QPushButton>
#include <QLayout>

class HounsfieldWindow :
	public QDialog
{
	Q_OBJECT
public:
	HounsfieldWindow(QWidget *parent = 0);
	~HounsfieldWindow(void);
	static void setMinValue(int value);
	static int getMinValue();
	static void setMaxValue(int value);
	static int getMaxValue();
	static void setWindowValues(int min, int max);
	static void setSoftWindow();
	static void setBoneWindow();
private:
	static int mMinValue;
	static int mMaxValue;

	static const int SOFT_WINDOW_MIN = 100;
	static const int SOFT_WINDOW_MAX = 300;

	static const int BONE_WINDOW_MIN = 700;
	static const int BONE_WINDOW_MAX = 3000;

	QLineEdit * mMinValueField;
	QLineEdit * mMaxValueField;
private slots:
	void slotAcceptValues();
};
